//
//  ViewController.m
//  DemoWiFi
//
//  Created by tangkexiong on 16/4/12.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import "ViewController.h"

#import "YCNetworkManager.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [self configCurNetworkLabel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Other

- (void)configCurNetworkLabel {
    _curNetworkLabel.numberOfLines = 0;
    _curNetworkLabel.text = [NSString stringWithFormat:@"WiFi名称：%@ \n IP地址：%@", [YCNetworkManager getWifiName], [YCNetworkManager getIPAddress]];
}

@end
